<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/init.jsp"%>
<script type="text/javascript">
	function myChk() {
		var start_time = $("input[name='srh_start']").val();
		if (start_time.length == 0) {
			$("#form1").validate({
				rules : {
					'srh_end' : {
						required : true
					}
				}
			});
		}
	}
	function query() {
		var url = $("#form1").attr("action") + "?" + $("#form1").serialize();
		add_and_edit(url);
	}
</script>
<div>
	<form action="${path}/ix/log/mac/list.htm" id="form1" method="post">
		<input name='bank_id' value='${bank_id}' type="hidden" />
		<h2>
			<div>设备管理日志</div>
		</h2>
		<div class="query">
			<table width="100%" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td width="80" align="left"><strong>操作类型：</strong></td>
					<td width="200" align="left"><input name="srh_name"
						value="${srh_name }" type="text" /></td>
					<td width="80" align="right"><strong>操作时间：</strong></td>
					<td width="150" align="left"><input name="srh_start"
						value="${srh_start }" onBlur="myChk()" readonly="readonly"
						type="text" maxlength="20"
						onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" /></td>
					<td width="5" align="right">-</td>
					<td width="150" align="left"><input name="srh_end"
						value="${srh_end }" readonly="readonly" type="text" maxlength="20"
						onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" /></td>
					<td align="left"><a href="javascript:query();"> <img
							src="${path}/style_cp/img/query.jpg" name="Image4" width="85"
							height="27" border="0" id="Image4" />
					</a></td>
				</tr>
			</table>
		</div>
		<table width="100%" class="listlindex" cellpadding="0" cellspacing="0">
			<tr>
				<th>设备编号</th>
				<th>操作银行</th>
				<th>目的银行</th>
				<th>操作用户</th>
				<th>操作备注</th>
				<th>审核银行</th>
				<th>审核人</th>
				<th>审核备注</th>
				<th>审核时间</th>
				<th>操作类型</th>
				<th>是否结束</th>
				<th>日期</th>
			</tr>
			<c:if test="${fn:length(list)==0}">
				<tr>
					<td colspan="12"><div class="tip_div">暂无记录.</div></td>
				</tr>
			</c:if>
			<c:forEach items="${list}" var="v">
				<tr>
					<td>${v.code}</td>
					<td>${v.bname}</td>
					<td>${v.vbname}</td>
					<td>${v.uname}</td>
					<td>${v.note}</td>
					<td>${v.bbbname}</td>
					<td>${v.vuname}</td>
					<td>${v.verify_note}</td>
					<td><fmt:formatDate value="${v.verify_time}"
							pattern="yyyy-MM-dd HH:mm:ss" /></td>
					<td>${v.type}</td>
					<td>${v.is_end}</td>
					<td><fmt:formatDate value="${v.created}"
							pattern="yyyy-MM-dd HH:mm:ss" /></td>
				</tr>
			</c:forEach>
			<c:if test="${fn:length(list)!=0}">
				<tr>
					<td colspan="12"><page:page page="${page}" is_ajax="true"
							ajax_id="add_edit_form" /></td>
				</tr>
			</c:if>
		</table>

	</form>
</div>
